<?php
class Tables{
	public static $errorTbl = "error";
	
	public static $settingsTbl = "settings";
	public static $settingsTextTbl = "settingsText";
	
	public static $adminTbl = "admins";
	public static $adminRightsTbl = "adminRights";
	public static $rightToAdminTbl = "rightToAdmin";
	
	public static $naviTbl = "navigations";
	public static $naviCatTbl = "navigationsCat";
	public static $naviLinksTbl = "navigationsLinks";
	public static $predefLink = "predefinedLinks";
	
	public static $moduleTbl = "modules";
	
	public static $formTbl = "form";
	public static $formFieldsTbl = "formFields";
	
	public static $bbcodeTbl = "bbcode";
	public static $smilieTbl = "smilies";
	public static $badwordsTbl = "badwords";
	public static $contentExtensionsTbl = "allowedExtensions";
	
	
	public static $commentsTbl = "comments";
	public static $iplockTbl = "ipLock";
	
	
	public static $pageLinksTbl = "pageLinks";
	public static $pageTbl = "pages";
	public static $pageBoxTbl = "pageBox";
	public static $pageBoxContentTbl = "pageBoxContent";
	
	public static $allowedSites = array();
	public static $redirectUrl = array();
	
	public static function constructTables($pre) {
		Tables::$errorTbl = $pre.Tables::$errorTbl;
		Tables::$settingsTbl = $pre.Tables::$settingsTbl;
		Tables::$settingsTextTbl = $pre.Tables::$settingsTextTbl;
		
		Tables::$adminTbl = $pre.Tables::$adminTbl;
		Tables::$adminRightsTbl = $pre.Tables::$adminRightsTbl;
		Tables::$rightToAdminTbl = $pre.Tables::$rightToAdminTbl;
		
		Tables::$naviTbl = $pre.Tables::$naviTbl;
		Tables::$naviCatTbl = $pre.Tables::$naviCatTbl;
		Tables::$naviLinksTbl = $pre.Tables::$naviLinksTbl;
		Tables::$predefLink = $pre.Tables::$predefLink;
		
		Tables::$moduleTbl = $pre.Tables::$moduleTbl;
		
		Tables::$formTbl = $pre.Tables::$formTbl;
		Tables::$formFieldsTbl = $pre.Tables::$formFieldsTbl;
		
		Tables::$bbcodeTbl = $pre.Tables::$bbcodeTbl;
		Tables::$smilieTbl = $pre.Tables::$smilieTbl;
		Tables::$badwordsTbl = $pre.Tables::$badwordsTbl;
		Tables::$contentExtensionsTbl = $pre.Tables::$contentExtensionsTbl;
		
		
		Tables::$commentsTbl = $pre.Tables::$commentsTbl;
		Tables::$iplockTbl = $pre.Tables::$iplockTbl;
		
		
		Tables::$pageLinksTbl = $pre.Tables::$pageLinksTbl;
		Tables::$pageTbl = $pre.Tables::$pageTbl;
		Tables::$pageBoxTbl = $pre.Tables::$pageBoxTbl;
		Tables::$pageBoxContentTbl = $pre.Tables::$pageBoxContentTbl;
	}
	
	public static function addAllowedSite($site) {
		Tables::$allowedSites[] = $site;
	}
}
?>